package main

import (
	"fmt"
	"os"
	"strings"
)

func main() {
	str := "D://2024/11/15/PMC48046CZ_14h55m48s/img1.jpeg"
	strs := strings.SplitAfter(str, "/")
	fmt.Println(len(strs))
	if len(strs) != 7 {
		fmt.Println("文件名称错误")
	}
	path := "files/" + strs[2] + strs[3] + strs[4] + strs[5]
	fmt.Println(path)
	err := os.MkdirAll(str, os.ModePerm)
	fmt.Println(err)
}
